package com.pzhu.service;

import com.pzhu.model.dto.OrderDto;
import com.pzhu.model.dto.OrderParamDto;
import com.pzhu.model.entity.Order;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pzhu.model.help.ResponseResult;

/**
* @author Administrator
* @description 针对表【hs_order(订单表)】的数据库操作Service
* @createDate 2023-12-21 20:27:36
*/
public interface OrderService extends IService<Order> {

    /**
     * 生成订单信息
     * @param orderDto
     * @return
     */
    ResponseResult pay(OrderDto orderDto);

    /**
     * 根据状态查询信息
     * @param status
     * @return
     */
    ResponseResult getOrder(Integer status);

    /**
     *查询所有没有派送成功的订单
     * @param orderParamDto
     * @return
     */
    ResponseResult undelivered(OrderParamDto orderParamDto);
}
